﻿using WpfFeeCalculator.View;
using WpfFeeCalculator.ViewModel;
namespace WpfFeeCalculator
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow : System.Windows.Window, IMainView
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        public override void EndInit()
        {
            if (DataContext != null)
                (DataContext as MainWindowViewModel).View = this as IMainView;
            base.EndInit();
        }



        public void CloseWindow()
        {
            this.Close();
        }
    }
}
